package cn.hacynn.nd.common.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @Author Hacynn
 * @Date 2024/5/25 17:23
 * @Version 1.0
 */
@Component
@ConfigurationProperties(prefix = "nd.oss")  // 配置属性类, 从 yml 中获取数据并封装成对象
@Data
public class OssProperties {

    private String endpoint;
    private String accessKeyId;
    private String accessKeySecret;
    private String region;
    private String roleArn;

}
